Optimal. Leaf size=94 \[ \frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \sin ^{-1}\left (\frac {\sin (c+d x)}{\sqrt {\cos (c+d x)+1}}\right )}{d}-\frac {\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \sin ^{-1}\left (\frac {\sin (c+d x)}{\cos (c+d x)+1}\right )}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.15, antiderivative size = 94, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {4222, 2777, 2774, 216, 2781} \[ \frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \sin ^{-1}\left (\frac {\sin (c+d x)}{\sqrt {\cos (c+d x)+1}}\right )}{d}-\frac {\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \sin ^{-1}\left (\frac {\sin (c+d x)}{\cos (c+d x)+1}\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 216
Rule 2774
Rule 2777
Rule 2781
Rule 4222
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {1+\cos (c+d x)} \sqrt {\sec (c+d x)}} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\cos (c+d x)}}{\sqrt {1+\cos (c+d x)}} \, dx\\ &=-\left (\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {1+\cos (c+d x)}} \, dx\right )+\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {1+\cos (c+d x)}}{\sqrt {\cos (c+d x)}} \, dx\\ &=-\frac {\left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {1-x^2}} \, dx,x,-\frac {\sin (c+d x)}{\sqrt {1+\cos (c+d x)}}\right )}{d}+\frac {\left (\sqrt {2} \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {1-x^2}} \, dx,x,-\frac {\sin (c+d x)}{1+\cos (c+d x)}\right )}{d}\\ &=-\frac {\sqrt {2} \sin ^{-1}\left (\frac {\sin (c+d x)}{1+\cos (c+d x)}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{d}+\frac {2 \sin ^{-1}\left (\frac {\sin (c+d x)}{\sqrt {1+\cos (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.60, size = 171, normalized size = 1.82 \[ \frac {i \sqrt {2} e^{-\frac {1}{2} i (c+d x)} \sqrt {\frac {e^{i (c+d x)}}{1+e^{2 i (c+d x)}}} \sqrt {1+e^{2 i (c+d x)}} \cos \left (\frac {1}{2} (c+d x)\right ) \left (-\sinh ^{-1}\left (e^{i (c+d x)}\right )+\sqrt {2} \tanh ^{-1}\left (\frac {-1+e^{i (c+d x)}}{\sqrt {2} \sqrt {1+e^{2 i (c+d x)}}}\right )+\tanh ^{-1}\left (\sqrt {1+e^{2 i (c+d x)}}\right )\right )}{d \sqrt {\cos (c+d x)+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.09, size = 70, normalized size = 0.74 \[ \frac {\sqrt {2} \arctan \left (\frac {\sqrt {2} \sqrt {\cos \left (d x + c\right ) + 1} \sqrt {\cos \left (d x + c\right )}}{\sin \left (d x + c\right )}\right ) - 2 \, \arctan \left (\frac {\sqrt {\cos \left (d x + c\right ) + 1} \sqrt {\cos \left (d x + c\right )}}{\sin \left (d x + c\right )}\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {\cos \left (d x + c\right ) + 1} \sqrt {\sec \left (d x + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.21, size = 134, normalized size = 1.43 \[ \frac {\sqrt {2+2 \cos \left (d x +c \right )}\, \cos \left (d x +c \right ) \left (-1+\cos \left (d x +c \right )\right )^{2} \left (\sqrt {2}\, \arcsin \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}\right )+2 \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}}{\cos \left (d x +c \right )}\right )\right ) \sqrt {2}}{2 d \sqrt {\frac {1}{\cos \left (d x +c \right )}}\, \left (\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {3}{2}} \sin \left (d x +c \right )^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: RuntimeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {1}{\sqrt {\cos \left (c+d\,x\right )+1}\,\sqrt {\frac {1}{\cos \left (c+d\,x\right )}}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {\cos {\left (c + d x \right )} + 1} \sqrt {\sec {\left (c + d x \right )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________